package com.itheima.a13interface;

public class Test {
    public static void main(String[] args) {
        Dog d = new Dog("小黑",3);
        d.eat();
        d.swim();

        Rabbit r = new Rabbit("小兔子",2);
        r.eat();
    }
}
